import java.awt.*;

public class Main {

    public static void main(String[] args) {
        Frame f = new Frame("测试窗口");
        //Panel p = new Panel();
        ScrollPane scrollPane = new ScrollPane(ScrollPane.SCROLLBARS_ALWAYS);
        scrollPane.add(new TextField(20));
        scrollPane.add(new Button("click me"));
        f.add(scrollPane);
        f.setBounds(30,30,250,200);
        f.setVisible(true);
    }
}
